package com.ch3cooh.rpc.controller;

import com.ch3cooh.rpc.component.LocalServerManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @功能:
 * @作者:chanson
 * @时间:2018/4/29 22:39
 */
@RestController
@RequestMapping(value = "/server",produces = "application/json;charset=utf-8")
public class ServerInfoController {

    @Autowired
    LocalServerManager localServerManager;

    @RequestMapping("/info")
    public ConcurrentHashMap serverInfo(){
        return localServerManager.showAll();
    }

}
